package com.citrix.gs.util.common;

import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
import java.util.Properties;
import java.util.TimeZone;

public class SrcInfo {
    
    
    private DateFormat ft = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ", Locale.ENGLISH);
    
    public SrcInfo() {
        ft.setTimeZone(TimeZone.getTimeZone("GMT"));
    }
    
    public SrcInfo(Properties prop) {
        this();
        
        revisionNo = prop.getProperty("REVISION_NUMBER");
        try {
            revisionDate = ft.parse(prop.getProperty("REVISION_DATE"));
        } catch (ParseException e) {
            e.printStackTrace();
        }
    }
    
    private String revisionNo;
    private Date revisionDate;
    
    public String getRevisionNo() {
        return revisionNo;
    }
    public void setRevisionNo(String revisionNo) {
        this.revisionNo = revisionNo;
    }
    public Date getRevisionDate() {
        return revisionDate;
    }
    public void setRevisionDate(Date revisionDate) {
        this.revisionDate = revisionDate;
    }
    
}
